import * as React from "react";
import * as ReactDOM from "react-dom";

import "./NotFound.less";


export interface NotFoundProps {

}

export interface State {

}

export default class NotFound extends React.Component<NotFoundProps, State> {
    //默认属性
    static readonly defaultProps: NotFoundProps = {};

    constructor(props: NotFoundProps) {
        super(props);
        //默认状态
        this.state = {};
    }

    //组件挂载后回调
    componentDidMount() {
        document.title = "";

    }

    render() {
        return <div className="NotFound">
            <h1>404</h1>
            <p>进入了一个未知的网页</p>
            <a href="/">回到首页</a>
        </div>
    }
}
